home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6488 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: s02.pavilion.co.uk!usenet
  2. From: AJRobb@pavilion.co.uk (Andy J Robb)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Conversion between 80 and 64 bit doubles
  5. Date: Sat, 24 Feb 1996 23:05:02 GMT
  6. Organization: Pavilion Internet plc
  7. Message-ID: <4go5h1$sql@s02.pavilion.co.uk>
  8. References: <4gifto$aaa@news2.deltanet.com>
  9. NNTP-Posting-Host: poolc50.pavilion.co.uk
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. fuz@deltanet.com (Scott Ellsworth) wrote:
  13.  
  14.  
  15. >As part of a project I am working on, I have to convert between
  16. >an 80 bit double written on a PC to a 64 bit unix number.  On
  17. >most platforms I have seen, this would not be all that hard,
  18. >since the one time it has come up, the 64 bit platform (Mac PPC) had a 
  19. >conversion routine.  This time, it will not be as kind, as the client 
  20. >wants a more general answer.  While I might be able to find a conversion 
  21. >routine that will work on his AIX compiler, he has hinted darkly that he 
  22. >will be moving to other compilers as well, and could I please write a 
  23. >general converter?
  24.  
  25. This is a common problem for any platform that supports AIFF or AIFC
  26. audio files (these use an 80-bit floating point value for the
  27. frequency).  The Silicon Graphics 4.0.5H included source for this.  I
  28. suggest that you follow this route (look to audio newsgroups).
  29.  
  30.  
  31. -----BEGIN PGP PUBLIC KEY BLOCK-----
  32. Version: 2.6.2i
  33.  
  34. mQCNAy/MpRwAAAEEAOt6uBYqT8yv9EmqNhK8m6v+bYi8QjnGW3Bo6iU1gsMj5pa6
  35. MHgq99c8deADbE3cbJ6uZS9v5pZE3WCf6HCQjlB5iULA5RZzMdAumd/WUzuL9UT3
  36. B44D9EqqFIL79FlYb56v4oKFqFp1/J2bIpYUwnUvabGzGjdLrpPl4P16x9sNAAUR
  37. tCNBbmR5IEogUm9iYiA8QUpSb2JiQHBhdmlsaW9uLmNvLnVrPrQhQW5keSBSb2Ji
  38. IDxBSlJvYmJAcGF2aWxpb24uY28udWs+
  39. =/wVD
  40. -----END PGP PUBLIC KEY BLOCK-----
  41.  
  42.